package edu.uoc.tdp.pac4.connexiomanteniment.gui;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Color;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.ImageIcon;
import edu.uoc.tdp.pac4.connexiomanteniment.i18n.*;



public abstract class PantallaMenuGeneral extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3065279689452874985L;
	private JPanel contentPane;
	
	/**
	 * Create the frame.
	 */
	public PantallaMenuGeneral() {
		setResizable(false);
		LanguageUtils.setDefaultLanguage("i18n/messagesConnexioManteniment");
		
		setTitle(LanguageUtils.getMessage("PantallaMenuGeneral.mainmenuTitle.text"));
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 289, 257);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		
		
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.setBackground(Color.WHITE);
		panel.setBounds(0, 0, 289, 76);
		contentPane.add(panel);
		
		JLabel label_1 = new JLabel("");
		label_1.setIcon(new ImageIcon(PantallaMenuGeneral.class.getResource("/images/logo.png")));
		label_1.setBounds(6, 6, 102, 64);
		panel.add(label_1);

		JLabel label_2 = new JLabel("eOlympics");
		label_2.setForeground(new Color(51, 153, 255));
		label_2.setFont(new Font("Calibri", Font.BOLD, 26));
		label_2.setBounds(120, 28, 118, 26);
		panel.add(label_2);

		
		JLabel label_3 = new JLabel("by SoftWebSolutions");
		label_3.setFont(new Font("Calibri", Font.PLAIN, 9));
		label_3.setBounds(38, 215, 84, 14);
		contentPane.add(label_3);
		
		JLabel label_4 = new JLabel("");
		label_4.setIcon(new ImageIcon(PantallaMenuGeneral.class.getResource("/images/logo_empresa.png")));
		label_4.setBounds(6, 215, 27, 14);
		contentPane.add(label_4);
	}
}
